<#include "./template/general_temp.ftl">

<#macro content>
<div class="row" xmlns:input="http://www.w3.org/1999/html" xmlns:input="http://www.w3.org/1999/html">
    <div class="box col-md-12">
        <div class="box-inner">
            <div class="box-header well" data-original-title="">
                <h2><i class="glyphicon glyphicon-edit"></i>编辑</h2>

                <div class="box-icon">
                    <a href="#" class="btn btn-setting btn-round btn-default"><i class="glyphicon glyphicon-cog"></i></a>
                    <a href="#" class="btn btn-minimize btn-round btn-default"><i class="glyphicon glyphicon-chevron-up"></i></a>
                    <a href="#" class="btn btn-close btn-round btn-default"><i class="glyphicon glyphicon-remove"></i></a>
                </div>
            </div>
            <div class="box-content">
                <#if !no_obj??>
                    <@form.form modelAttribute="editBaseInfoCommand" action="/system/baseInfo/add" role="form" enctype="multipart/form-data">
                        <@form.errors path='*' element="div" cssClass="alert alert-success" cssErrorClass="alert alert-danger"/>
                        <#if no_error??>
                            <div class="alert alert-success">
                                <strong>Well done! </strong>提交成功。
                            </div>
                        </#if>
                    <table>
                        <tr>
                            <td>
                                <label class="control-label" for="name">案例名称：</label>
                            </td>
                            <td>
                                <@form.input path="name" cssClass="form-control" id="name"/>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label class="control-label" for="trappedPersonNum">井下被困人数：</label>
                            </td>
                            <td>
                                <input type="number" required="required" name="trappedPersonNum" class="form-control" value="${editBaseInfoCommand.trappedPersonNum!''}">
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label class="control-label" for="explosionMin">爆炸规模下限(%)：</label>
                            </td>
                            <td>
                                <input type="number" name="explosionMin" required="required" class="form-control" value="${editBaseInfoCommand.explosionMin!''}">
                            </td>
                            <td>
                                <label class="control-label" for="explosionMax">爆炸规模上限(%)：</label>
                            </td>
                            <td>
                                <input type="number" name="explosionMax" required="required" class="form-control" value="${editBaseInfoCommand.explosionMax!''}">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label class="control-label" for="coMin">CO体积分数下限(万分之)：</label>
                            </td>
                            <td>
                                <input type="number" name="coMin" required="required" class="form-control" value="${editBaseInfoCommand.coMin!''}">
                            </td>
                            <td>
                                <label class="control-label" for="coMax">CO体积分数上限(万分之)：</label>
                            </td>
                            <td>
                                <input type="number" name="coMax" required="required" class="form-control" value="${editBaseInfoCommand.coMax!''}">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label class="control-label" for="gasMin">瓦斯含量下限(%)：</label>
                            </td>
                            <td>
                                <input type="number" name="gasMin" required="required" class="form-control" value="${editBaseInfoCommand.gasMin!''}">
                            </td>
                            <td>
                                <label class="control-label" for="gasMax">瓦斯含量上限(%)：</label>
                            </td>
                            <td>
                                <input type="number" name="gasMax" required="required" class="form-control" value="${editBaseInfoCommand.gasMax!''}">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label class="control-label" for="ventilationMin">通风系统破坏程度下限(%)：</label>
                            </td>
                            <td>
                                <input type="number" name="ventilationMin" required="required" class="form-control" value="${editBaseInfoCommand.ventilationMin!''}">
                            </td>
                            <td>
                                <label class="control-label" for="ventilationMax">通风系统破坏程度上限(%)：</label>
                            </td>
                            <td>
                                <input type="number" name="ventilationMax" required="required" class="form-control" value="${editBaseInfoCommand.ventilationMax!''}">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label class="control-label" for="collapseMin">坍塌情况下限(%)：</label>
                            </td>
                            <td>
                                <input type="number" name="collapseMin" required="required" class="form-control" value="${editBaseInfoCommand.collapseMin!''}">
                            </td>
                            <td>
                                <label class="control-label" for="collapseMax">坍塌情况上限(%)：</label>
                            </td>
                            <td>
                                <input type="number" name="collapseMax" required="required" class="form-control" value="${editBaseInfoCommand.collapseMax!''}">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label class="control-label" for="secondaryExplosionMin">二次爆炸危害下限(%)：</label>
                            </td>
                            <td>
                                <input type="number" name="secondaryExplosionMin" required="required" class="form-control" value="${editBaseInfoCommand.secondaryExplosionMin!''}">
                            </td>
                            <td>
                                <label class="control-label" for="secondaryExplosionMax">二次爆炸危害上限(%)：</label>
                            </td>
                            <td>
                                <input type="number" name="secondaryExplosionMax" required="required" class="form-control" value="${editBaseInfoCommand.secondaryExplosionMax!''}">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label class="control-label" for="fireHazard">是否引起火灾：</label>
                            </td>
                            <td>
                                <select name="fireHazard" class="form-control" required="required" id="fireHazard">
                                    <option value="1">是</option>
                                    <option value="0">否</option>
                                </select>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label class="control-label">处理人员：</label>
                            </td>
                            <td>
                                <input type="text" name="person" required="required" class="form-control" value="${editBaseInfoCommand.person!''}">
                            </td>
                            <td>
                                <label class="control-label">联系方式：</label>
                            </td>
                            <td>
                                <input type="tel" name="telphone" required="required" class="form-control" value="${editBaseInfoCommand.telphone!''}">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <label class="control-label">经验：</label>
                            </td>
                            <td>
                                <input type="text" name="experience" required="required" class="form-control" value="${editBaseInfoCommand.experience!''}">
                            </td>
                            <td>
                                <label class="control-label">教训：</label>
                            </td>
                            <td>
                                <input type="text" name="lesson" required="required" class="form-control" value="${editBaseInfoCommand.lesson!''}">
                            </td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><button type="submit" class="btn btn-default">提交</button></td>
                            <td></td>
                            <td></td>
                        </tr>
                    </table>
                    </@form.form>
                <#else>
                    <div class="alert alert-danger">
                        <button type="button" class="close" data-dismiss="alert">×</button>
                        <strong>Oh snap!</strong>没有找到数据！
                    </div>
                </#if>
            </div>
        </div>
    </div>
    <!--/span-->
</div>
<!--/row-->
</#macro>

<#macro script>
<script type="text/javascript">

</script>
</#macro>
